package com.yjt.gcss.gddw.modules.txnPlds;

import javax.annotation.Resource;

import org.hibernate.criterion.MatchMode;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.yjt.common.easyui.datagrid.DataGridDTO;
import com.yjt.common.easyui.datagrid.DataGridJsonDTO;
import com.yjt.gcss.gddw.common.bean.domain.TxnPlds;
import com.yjt.gcss.gddw.common.dao.TxnPldsDao;

@Service(TxnPldsService.BEAN_PACKAGE_NAME)
@Transactional(readOnly=true)
public class TxnPldsService {

	public static final String BEAN_PACKAGE_NAME = "com.yjt.gcss.gddw.modules.txnPlds.TxnPldsService";
	@Resource(name = TxnPldsDao.BEAN_PACKAGE_NAME)
	private TxnPldsDao txnPldsDao;
	
	public DataGridJsonDTO query(TxnPlds queryModel, DataGridDTO _dataGridDto) {
		DataGridJsonDTO result = txnPldsDao.getBeansByBeanForPager(queryModel, MatchMode.ANYWHERE, _dataGridDto, true);
		return result;
	}
	
	public TxnPlds getTxnPldsByQueryModel(TxnPlds queryModel) {
		return txnPldsDao.getBeanByBean(queryModel, MatchMode.ANYWHERE);
	}
}
